package com.ibeetl.cms.entity;

import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import javax.validation.constraints.NotNull;

//亲属表
public class Relatives extends BaseEntity {
    //Id
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID
    private Integer id ;

    //姓名
    private String relativesName;

    //与申报人的关系 0-配偶 1-子女
    private String relationship;

    //身份证号码
    private String relativesIdNumber;

    //证件类别
    private String relativesIdType;

    //关联ID
    private Integer relativesId;

    //与申报人的关系(中文展示)
    private String relationshipName;

    //证件类别(中文展示）
    private String relativesIdTypeName;

    public String getRelationshipName() {
        return relationshipName;
    }

    public void setRelationshipName(String relationshipName) {
        this.relationshipName = relationshipName;
    }

    public String getRelativesIdTypeName() {
        return relativesIdTypeName;
    }

    public void setRelativesIdTypeName(String relativesIdTypeName) {
        this.relativesIdTypeName = relativesIdTypeName;
    }

    public String getRelativesIdType() {
        return relativesIdType;
    }

    public void setRelativesIdType(String relativesIdType) {
        this.relativesIdType = relativesIdType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRelativesName() {
        return relativesName;
    }

    public void setRelativesName(String relativesName) {
        this.relativesName = relativesName;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getRelativesIdNumber() {
        return relativesIdNumber;
    }

    public void setRelativesIdNumber(String relativesIdNumber) {
        this.relativesIdNumber = relativesIdNumber;
    }

    public Integer getRelativesId() {
        return relativesId;
    }

    public void setRelativesId(Integer relativesId) {
        this.relativesId = relativesId;
    }
}
